<!--空白弹出页面参考模版-->
{extend name='public/layer_base' /}
{block name='content'}
<!-- 这里写内容即可 -->
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <!-- 表单 -->
                <form id="dataForm" class="form-horizontal dataForm" action="" method="post"
                      enctype="multipart/form-data">
                    <!-- 表单字段区域 -->
                    <div class="box-body">
                        <input type="hidden" value="{$member_id}" name="member_id">
                        <input type="hidden" value="add" name="is_add">


                        <div class="form-group">
                            <label for="member_id" class="col-sm-2 control-label">用户ID</label>
                            <div class="col-sm-10 col-md-4">
                                <input id="member_id" value="{$memberinfo.member_id|default=''}"
                                       readonly type="text" class="form-control field-text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="me_nick_name" class="col-sm-2 control-label">用户昵称</label>
                            <div class="col-sm-10 col-md-4">
                                <input id="me_nick_name" value="{$memberinfo.me_nick_name|default=''}"
                                       readonly type="text" class="form-control field-text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="me_sex_word" class="col-sm-2 control-label">用户当前性别</label>
                            <div class="col-sm-10 col-md-4">
                                <input id="me_sex_word" value="{$memberinfo.me_sex_word|default=''}"
                                       readonly type="text" class="form-control field-text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="new_sex" class="col-sm-2 control-label">设置性别</label>
                            <div class="col-sm-10 col-md-4">
                                <select name="new_sex" id="new_sex" class="form-control field-select">
                                    {foreach name='list' id='item' key='data_key'}
                                      <option value="{$data_key}" {if isset($memberinfo) && $memberinfo.me_sex==$data_key}selected{/if}>{$item}</option>
                                    {/foreach}
                                </select>
                            </div>
                        </div>

                    </div>
                    <!-- 表单底部 -->
                    <div class="box-footer">
                        <div class="col-sm-2">
                        </div>
                        <div class="col-sm-10 col-md-4" style="text-align: center;">

                            <div class="btn-group">
                                <button type="submit" class="btn flat btn-info dataFormSubmit">
                                    修改
                                </button>
                            </div>
                            <div class="btn-group">
                                <button type="reset" class="btn flat btn-default dataFormReset">
                                    重置
                                </button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</section>

<script>
    /** 表单验证 **/
    $('#dataForm').validate({});
</script>
{/block}